<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: UART</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#groups">Modules</a> &#124;
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">UART<div class="ingroups"><a class="el" href="group___w_b32_l003___std_periph___driver.html">WB32L003_StdPeriph_Driver</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>UART driver modules.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
Modules</h2></td></tr>
<tr class="memitem:group___u_a_r_t___exported___constants"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_a_r_t___exported___constants.html">UART_Exported_Constants</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group___u_a_r_t___private___functions"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_a_r_t___private___functions.html">UART_Private_Functions</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_u_a_r_t___init_type_def.html">UART_InitTypeDef</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">UART Init Structure definition.  <a href="struct_u_a_r_t___init_type_def.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga78d1bed44f47ad24ff2b6f34cf8f4653"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_a_r_t.html#ga78d1bed44f47ad24ff2b6f34cf8f4653">UART_DeInit</a> (<a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *UARTx)</td></tr>
<tr class="memdesc:ga78d1bed44f47ad24ff2b6f34cf8f4653"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deinitializes the UARTx peripheral registers to their default reset values.  <a href="#ga78d1bed44f47ad24ff2b6f34cf8f4653">More...</a><br /></td></tr>
<tr class="separator:ga78d1bed44f47ad24ff2b6f34cf8f4653"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafa42d3571c479818210b9bc065337506"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_a_r_t.html#gafa42d3571c479818210b9bc065337506">UART_Init</a> (<a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *UARTx, <a class="el" href="struct_u_a_r_t___init_type_def.html">UART_InitTypeDef</a> *UART_InitStruct)</td></tr>
<tr class="memdesc:gafa42d3571c479818210b9bc065337506"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the UARTx peripheral according to the specified parameters in the UART_InitStruct.  <a href="#gafa42d3571c479818210b9bc065337506">More...</a><br /></td></tr>
<tr class="separator:gafa42d3571c479818210b9bc065337506"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga73087c97b8a29a580894ced7b125bc41"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_a_r_t.html#ga73087c97b8a29a580894ced7b125bc41">UART_StructInit</a> (<a class="el" href="struct_u_a_r_t___init_type_def.html">UART_InitTypeDef</a> *UART_InitStruct)</td></tr>
<tr class="memdesc:ga73087c97b8a29a580894ced7b125bc41"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills each UART_InitStruct member with its default value.  <a href="#ga73087c97b8a29a580894ced7b125bc41">More...</a><br /></td></tr>
<tr class="separator:ga73087c97b8a29a580894ced7b125bc41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga55dbc2855399be7e50bd0046ac11c9d1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_a_r_t.html#ga55dbc2855399be7e50bd0046ac11c9d1">UART_Cmd</a> (<a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *UARTx, FunctionalState NewState)</td></tr>
<tr class="memdesc:ga55dbc2855399be7e50bd0046ac11c9d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the specified UART peripheral.  <a href="#ga55dbc2855399be7e50bd0046ac11c9d1">More...</a><br /></td></tr>
<tr class="separator:ga55dbc2855399be7e50bd0046ac11c9d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae771b39a6d2bf87d9ccaae7d91f266e7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_a_r_t.html#gae771b39a6d2bf87d9ccaae7d91f266e7">UART_WriteData</a> (<a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *UARTx, uint8_t Data)</td></tr>
<tr class="memdesc:gae771b39a6d2bf87d9ccaae7d91f266e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write data to SBUF register.  <a href="#gae771b39a6d2bf87d9ccaae7d91f266e7">More...</a><br /></td></tr>
<tr class="separator:gae771b39a6d2bf87d9ccaae7d91f266e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7e4b8c9da67a4cd31441e3e737599fed"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_a_r_t.html#ga7e4b8c9da67a4cd31441e3e737599fed">UART_ReadData</a> (<a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *UARTx)</td></tr>
<tr class="memdesc:ga7e4b8c9da67a4cd31441e3e737599fed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read data from SBUF register.  <a href="#ga7e4b8c9da67a4cd31441e3e737599fed">More...</a><br /></td></tr>
<tr class="separator:ga7e4b8c9da67a4cd31441e3e737599fed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2cb21e7055e7e58ebfd266602118f1c5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_a_r_t.html#ga2cb21e7055e7e58ebfd266602118f1c5">UART_MultideviceCmd</a> (<a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *UARTx, FunctionalState NewState)</td></tr>
<tr class="memdesc:ga2cb21e7055e7e58ebfd266602118f1c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the UARTx's Multidevice function.  <a href="#ga2cb21e7055e7e58ebfd266602118f1c5">More...</a><br /></td></tr>
<tr class="separator:ga2cb21e7055e7e58ebfd266602118f1c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8298ce33f460ed0f89796bf7d6ef219e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_a_r_t.html#ga8298ce33f460ed0f89796bf7d6ef219e">UART_SetAddress</a> (<a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *UARTx, uint8_t UART_Address)</td></tr>
<tr class="memdesc:ga8298ce33f460ed0f89796bf7d6ef219e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the address of the UART node.  <a href="#ga8298ce33f460ed0f89796bf7d6ef219e">More...</a><br /></td></tr>
<tr class="separator:ga8298ce33f460ed0f89796bf7d6ef219e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga27b3b5278ee0ad8835aad735ae444572"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_a_r_t.html#ga27b3b5278ee0ad8835aad735ae444572">UART_SetAddressMask</a> (<a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *UARTx, uint8_t UART_AddressMask)</td></tr>
<tr class="memdesc:ga27b3b5278ee0ad8835aad735ae444572"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the address mask of the UART node.  <a href="#ga27b3b5278ee0ad8835aad735ae444572">More...</a><br /></td></tr>
<tr class="separator:ga27b3b5278ee0ad8835aad735ae444572"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab5bb64e7520bb9fc109f316452fa671f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_a_r_t.html#gab5bb64e7520bb9fc109f316452fa671f">UART_IrDACmd</a> (<a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *UARTx, FunctionalState NewState)</td></tr>
<tr class="memdesc:gab5bb64e7520bb9fc109f316452fa671f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the UARTx's IrDA Mode.  <a href="#gab5bb64e7520bb9fc109f316452fa671f">More...</a><br /></td></tr>
<tr class="separator:gab5bb64e7520bb9fc109f316452fa671f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa8712d0148ad4e2fbeaa9e120f055d6b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_a_r_t.html#gaa8712d0148ad4e2fbeaa9e120f055d6b">UART_ITConfig</a> (<a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *UARTx, uint8_t UART_IT, FunctionalState NewState)</td></tr>
<tr class="memdesc:gaa8712d0148ad4e2fbeaa9e120f055d6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the UARTx's interrupts.  <a href="#gaa8712d0148ad4e2fbeaa9e120f055d6b">More...</a><br /></td></tr>
<tr class="separator:gaa8712d0148ad4e2fbeaa9e120f055d6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8778fc5eb3a14c0dcb938e72c01236e8"><td class="memItemLeft" align="right" valign="top">FlagStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_a_r_t.html#ga8778fc5eb3a14c0dcb938e72c01236e8">UART_GetFlagStatus</a> (<a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *UARTx, uint32_t UART_FLAG)</td></tr>
<tr class="memdesc:ga8778fc5eb3a14c0dcb938e72c01236e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the specified UART flag is set or not.  <a href="#ga8778fc5eb3a14c0dcb938e72c01236e8">More...</a><br /></td></tr>
<tr class="separator:ga8778fc5eb3a14c0dcb938e72c01236e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae6b05bda2f760f8e5242b0311eb93fbf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_a_r_t.html#gae6b05bda2f760f8e5242b0311eb93fbf">UART_ClearFlag</a> (<a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *UARTx, uint32_t UART_FLAG)</td></tr>
<tr class="memdesc:gae6b05bda2f760f8e5242b0311eb93fbf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear the specified UART flag.  <a href="#gae6b05bda2f760f8e5242b0311eb93fbf">More...</a><br /></td></tr>
<tr class="separator:gae6b05bda2f760f8e5242b0311eb93fbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>UART driver modules. </p>
<h2 class="groupheader">Function Documentation</h2>
<a id="gae6b05bda2f760f8e5242b0311eb93fbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae6b05bda2f760f8e5242b0311eb93fbf">&#9670;&nbsp;</a></span>UART_ClearFlag()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UART_ClearFlag </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>UARTx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>UART_FLAG</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clear the specified UART flag. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">UARTx</td><td>Pointer to selected UART peripheral. This parameter can be one of the following values: UART1, UART2. </td></tr>
    <tr><td class="paramname">UART_FLAG</td><td>specifies the flag to clear. This parameter can be one of the following values: <ul>
<li>UART_FLAG_FE: Busy flag. </li>
<li>UART_FLAG_TI: Transmit FIFO Not Full flag. </li>
<li>UART_FLAG_RI: Transmit FIFO Empty flag. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>new state of UART_FLAG (SET or RESET). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga55dbc2855399be7e50bd0046ac11c9d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga55dbc2855399be7e50bd0046ac11c9d1">&#9670;&nbsp;</a></span>UART_Cmd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UART_Cmd </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>UARTx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or disables the specified UART peripheral. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">UARTx</td><td>Select the UART peripheral. This parameter can be one of the following values: UART1, UART2. </td></tr>
    <tr><td class="paramname">NewState</td><td>new state of the UARTx peripheral. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga78d1bed44f47ad24ff2b6f34cf8f4653"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga78d1bed44f47ad24ff2b6f34cf8f4653">&#9670;&nbsp;</a></span>UART_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UART_DeInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>UARTx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Deinitializes the UARTx peripheral registers to their default reset values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">UARTx</td><td>Pointer to selected UART peripheral. This parameter can be one of the following values: UART1, UART2. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga8778fc5eb3a14c0dcb938e72c01236e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8778fc5eb3a14c0dcb938e72c01236e8">&#9670;&nbsp;</a></span>UART_GetFlagStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FlagStatus UART_GetFlagStatus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>UARTx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>UART_FLAG</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks whether the specified UART flag is set or not. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">UARTx</td><td>Pointer to selected UART peripheral. This parameter can be one of the following values: UART1, UART2. </td></tr>
    <tr><td class="paramname">UART_FLAG</td><td>specifies the flag to check. This parameter can be one of the following values: <ul>
<li>UART_FLAG_FE: Busy flag. </li>
<li>UART_FLAG_TI: Transmit FIFO Not Full flag. </li>
<li>UART_FLAG_RI: Transmit FIFO Empty flag. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>new state of UART_FLAG (SET or RESET). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gafa42d3571c479818210b9bc065337506"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafa42d3571c479818210b9bc065337506">&#9670;&nbsp;</a></span>UART_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UART_Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>UARTx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_u_a_r_t___init_type_def.html">UART_InitTypeDef</a> *&#160;</td>
          <td class="paramname"><em>UART_InitStruct</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the UARTx peripheral according to the specified parameters in the UART_InitStruct. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">UARTx</td><td>Pointer to selected UART peripheral. This parameter can be one of the following values: UART1, UART2. </td></tr>
    <tr><td class="paramname">UART_InitStruct</td><td>pointer to a <a class="el" href="struct_u_a_r_t___init_type_def.html" title="UART Init Structure definition.">UART_InitTypeDef</a> structure that contains the configuration information for the specified UART peripheral. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gab5bb64e7520bb9fc109f316452fa671f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab5bb64e7520bb9fc109f316452fa671f">&#9670;&nbsp;</a></span>UART_IrDACmd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UART_IrDACmd </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>UARTx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or disables the UARTx's IrDA Mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">UARTx</td><td>Pointer to selected UART peripheral. This parameter can be one of the following values: UART1, UART2. </td></tr>
    <tr><td class="paramname">NewState</td><td>new state of the IrDA Mode. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaa8712d0148ad4e2fbeaa9e120f055d6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa8712d0148ad4e2fbeaa9e120f055d6b">&#9670;&nbsp;</a></span>UART_ITConfig()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UART_ITConfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>UARTx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>UART_IT</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or disables the UARTx's interrupts. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">UARTx</td><td>Pointer to selected UART peripheral. This parameter can be one of the following values: UART1, UART2. </td></tr>
    <tr><td class="paramname">UART_IT</td><td>specifies the UART interrupt sources to be enabled or disabled. This parameter can be a combination of the following values: <ul>
<li>UART_IT_FEFN </li>
<li>UART_IT_TIEN </li>
<li>UART_IT_RIEN </li>
</ul>
</td></tr>
    <tr><td class="paramname">NewState</td><td>new state of the interrupts. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga2cb21e7055e7e58ebfd266602118f1c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2cb21e7055e7e58ebfd266602118f1c5">&#9670;&nbsp;</a></span>UART_MultideviceCmd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UART_MultideviceCmd </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>UARTx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or disables the UARTx's Multidevice function. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">UARTx</td><td>Pointer to selected UART peripheral. This parameter can be one of the following values: UART1, UART2. </td></tr>
    <tr><td class="paramname">NewState</td><td>new state of the UART Multidevice function. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga7e4b8c9da67a4cd31441e3e737599fed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7e4b8c9da67a4cd31441e3e737599fed">&#9670;&nbsp;</a></span>UART_ReadData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t UART_ReadData </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>UARTx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read data from SBUF register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">UARTx</td><td>Pointer to selected UART peripheral. This parameter can be one of the following values: UART1, UART2. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>received data </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga8298ce33f460ed0f89796bf7d6ef219e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8298ce33f460ed0f89796bf7d6ef219e">&#9670;&nbsp;</a></span>UART_SetAddress()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UART_SetAddress </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>UARTx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>UART_Address</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the address of the UART node. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">UARTx</td><td>Pointer to selected UART peripheral. This parameter can be one of the following values: UART1, UART2. </td></tr>
    <tr><td class="paramname">UART_Address</td><td>Indicates the address of the UART node. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga27b3b5278ee0ad8835aad735ae444572"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga27b3b5278ee0ad8835aad735ae444572">&#9670;&nbsp;</a></span>UART_SetAddressMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UART_SetAddressMask </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>UARTx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>UART_AddressMask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the address mask of the UART node. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">UARTx</td><td>Pointer to selected UART peripheral. This parameter can be one of the following values: UART1, UART2. </td></tr>
    <tr><td class="paramname">UART_AddressMask</td><td>Indicates the address mask of the UART node. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga73087c97b8a29a580894ced7b125bc41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga73087c97b8a29a580894ced7b125bc41">&#9670;&nbsp;</a></span>UART_StructInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UART_StructInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_u_a_r_t___init_type_def.html">UART_InitTypeDef</a> *&#160;</td>
          <td class="paramname"><em>UART_InitStruct</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills each UART_InitStruct member with its default value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">UART_InitStruct</td><td>pointer to a <a class="el" href="struct_u_a_r_t___init_type_def.html" title="UART Init Structure definition.">UART_InitTypeDef</a> structure which will be initialized. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gae771b39a6d2bf87d9ccaae7d91f266e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae771b39a6d2bf87d9ccaae7d91f266e7">&#9670;&nbsp;</a></span>UART_WriteData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UART_WriteData </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_u_a_r_t___type_def.html">UART_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>UARTx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>Data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write data to SBUF register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">UARTx</td><td>Pointer to selected UART peripheral. This parameter can be one of the following values: UART1, UART2. </td></tr>
    <tr><td class="paramname">Data</td><td>the data to write. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
